package com.todo.biz.application.remote;

import com.todo.common.common.entity.response.BizResponse;
import com.todo.strategy.online.service.api.response.UserStrategyBaseResponse;
import com.todo.strategy.online.service.api.response.UserStrategyDetailResponse;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author azhebuxing
 * @date 2025/2/27 23:08
 * @description
 */
@FeignClient(name = "todoStrategyOnlineService", url = "http://localhost:18004")
public interface UserStrategyRemoteService {

    @Operation(summary = "根据id查询用户攻略信息")
    @PostMapping("/api/user/strategy/queryUserStrategyById")
    BizResponse<UserStrategyBaseResponse> queryUserStrategyById(@RequestBody Long userStrategyId);

    @Operation(summary = "根据id查询用户攻略详情")
    @PostMapping("/api/user/strategy/queryUserStrategyDetailById")
    BizResponse<UserStrategyDetailResponse> queryUserStrategyDetailById(@RequestBody Long userStrategyId);

    @Operation(summary = "根据id列表查询用户攻略信息")
    @PostMapping("/api/user/strategy/queryUserStrategyList")
    BizResponse<List<UserStrategyBaseResponse>> queryUserStrategyList(@RequestBody List<Long> strategyIdList);
}
